package com.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;

@Data
@TableName("sys_user")
public class User implements Serializable {
   @TableId(type = IdType.AUTO)
   @TableField("usr_id")
   private Long usrId;
   @TableField("usr_name")
   private String usrName;
   private String usrPassword;
   private Long usrRoleId;
   private Integer usrFlag;

   public User(String usrName, String usrPassword, long usrRoleId, int usrFlag) {
      this.usrName=usrName;
      this.usrPassword=usrPassword;
      this.usrRoleId=usrRoleId;
      this.usrFlag=usrFlag;
   }

   public User() {
   }
}